<script setup>
      import { useRoute,useRouter } from 'vue-router';
      const  router  =  useRouter();  //hooks 函数
</script>

<template>
      详情页面:{{ router.currentRoute.value.query.myId}}
</template>
